import request from '../utils/request'

/**
 * 员工列表
 */
export const selectEmployee = data => request({
  url: 'employeeController/selectEmployee',
  method: 'POST',
  data
})

/**
 * 添加员工
 */
export const addEmployee = data => request({
  url: 'employeeController/addEmployee',
  method: 'POST',
  data
})

/**
 * 删除员工
 */
export const delEmployee = data => request({
  url: 'employeeController/delEmployee',
  method: 'POST',
  data
})

// 门店组织
export const getIssue = data => request({
  url: 'shopinfo/getIssue',
  method: 'POST',
  data
})

// 门店组织结构添加
export const addIssue = data => request({
  url: 'shopinfo/addIssue',
  method: 'POST',
  data
})

// 门店组织结构编辑
export const updateIssue = data => request({
  url: 'shopinfo/updateIssue',
  method: 'POST',
  data
})

// 门店组织结构删除
export const delIssue = data => request({
  url: 'shopinfo/delIssue',
  method: 'POST',
  data
})

// 查询门店列表
export const getShop = data => request({
  url: 'shopinfo/getShop',
  method: 'POST',
  data
})

// 添加门店
export const addShop = data => request({
  url: 'shopinfo/addShop',
  method: 'POST',
  data
})

// 门店上下架
export const shopUpOrDown = data => request({
  url: 'shopinfo/shopUpOrDown',
  method: 'POST',
  data
})

// 编辑门店
export const updateShop = data => request({
  url: 'shopinfo/updateShop',
  method: 'POST',
  data
})

// 查询省
export const selectProvince = data => request({
  url: 'shopinfo/selectProvince',
  method: 'POST',
  data
})
// 查询市
export const selectCity = data => request({
  url: 'shopinfo/selectCity',
  method: 'POST',
  data
})

// 下拉框选着门店
export const shopList = data => request({
  url: 'shop/shopList',
  method: 'POST',
  data
})
